import java.util.Scanner;

public class Zxf16 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.println("请输入一个四位数");
        int p = in.nextInt();
        int qian = p / 1000 % 10;
        int bai = p / 100 % 10;
        int shi = p / 10 % 10;
        int ge = p % 10;
        int k = qian + bai + shi + ge;
        if (k > 24) {
            System.out.println("恭喜您，您中奖了，奖品是彩电一台。");
        } else if (k > 20) {
            System.out.println("恭喜您，您中奖了，奖品是电吹风一部。");
        } else if (k > 16) {
            System.out.println("恭喜您，您中奖了，奖品是餐巾纸一包。");
        } else {
            System.out.println("下次继续努力。");
        }
    }
}




